<%-- 
    Document   : adm_verMapa
    Created on : 06-dic-2010, 2:19:23
    Author     : Estudio
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <link href="css/style.css" href="css/style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="js/jquery-1.4.1.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
        <!--[if lt IE 8]>
        <link href="style_IE.css" rel="stylesheet" type="text/css" media="all" />
        <![endif]-->

        <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=ABQIAAAAO0QGzaBV_4_NMzqUp_f8nhTwM0brOpm-All5BF6PoaKBxRWWERRzpuFzBElRjPo9kTdJ3pKnflxu2w" type="text/javascript"></script>


        <script type="text/javascript">
        //<![CDATA[

        function load() {
        if (GBrowserIsCompatible()) {
            var map = new GMap(document.getElementById("map"));

            //map.addControl(new GLargeMapControl());



            //map.addControl(new GMapTypeControl());
            //map.addControl(new GSmallMapControl());

            var latitud = window.parent.document.getElementById("latitud").value;
            var longitud = window.parent.document.getElementById("longitud").value;
            //-12.109655
            //-76.977553

            map.setCenter(new GLatLng(latitud,longitud), 14);
            //var marker = new GMarker(new GPoint(-12.109655,-76.977553));
            //map.addOverlay(marker);

            map.addOverlay(createMarker(latitud,longitud));


        }
        }

        function createMarker(lat,lng) {
                var point = new GLatLng(lat,lng);
                var marker = new GMarker(point);

                GEvent.addListener(marker, "click", function() {
                        marker.openInfoWindowHtml("Av Privamavera</br>Santiago de Surco");
                });
                return marker;
                }

        //]]>
        </script>



    </head>
    <body onload="load()" onunload="GUnload()">
       <div id="map" style="width: 650px; height: 400px"></div>
    </body>
</html>
